package cn.wolfcode.service;

import cn.wolfcode.domain.SystemDictionary;
import cn.wolfcode.domain.SystemDictionaryItem;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ISystemDictionaryItemService {
    void delete(Long id);

    void insert(SystemDictionaryItem systemDictionaryItem);

    SystemDictionaryItem listOne(Long id);

    List<SystemDictionaryItem> listAll();

    void update(SystemDictionaryItem systemDictionaryItem);
    PageInfo<SystemDictionaryItem> query(QueryObject qo);

    List<SystemDictionaryItem> getParents(Long typeId);

    List<SystemDictionaryItem> selectBySn(String sn);

    List<SystemDictionaryItem> selectByParentId(Long parentId);
}
